home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 2003 September / PC Answers September 2003.iso / Software / trial / MonitorIT 5.2.06 / monitorit_fullsetup.exe / data1.cab / Rpm / AdministerDataImport.asp < prev    next >
Encoding:
Text File  |  2003-06-24  |  37.3 KB  |  1,101 lines

  1. <html>
  2.  
  3. <head>
  4. <meta name="GENERATOR" content="Microsoft FrontPage 3.0">
  5. <title>'Admin' Data Import</title>
  6. <link rel="stylesheet" type="text/css" href="css/rpmstyle.css">
  7.  
  8. <style>
  9.  
  10. .StatMsg { height:280; width:400; font-family:arial; font-size: 8pt; font-weight: 700; color: windowtext; background-color: threedlightshadow; }
  11. .StatMsg {  overflow : scroll}
  12.  
  13. </style>
  14.  
  15. <script>
  16. <!--
  17. var StatusMessageText = "";
  18.  
  19. var UserIndex = 0;
  20. var UserName = "";
  21. var UserRecLength = 6; // User Lookup record length
  22. var UserCount = 0;
  23.  
  24. var ServerIndex = 0;
  25. var ServerName = "";
  26. var ServerRecLength = 5; // Server record Length
  27. var ServerCount = 0;
  28.  
  29. var GroupIndex = 0; 
  30. var GroupName = "";
  31. var GroupRecLength = 4; // Length of a Group Lookup record in the Store
  32. var GroupLookupFlag = false;
  33. var GroupCount = 0;
  34.  
  35. var ComputerIndex = 0; 
  36. var ComputerName = "";
  37. var ComputerRecLength = 9; // Computer Lookup record length
  38. var ComputerCount = 0;
  39. var ComputerLookupFlag = false;
  40. var CArray = new Array();
  41.  
  42. var ServiceIndex = 0; 
  43. var ServiceName = "";
  44. var ServiceCount = 0;
  45. var ServiceType = "";
  46. var ServiceFreq = "";
  47. var ServiceAGID = "";
  48. var ServiceCID = "";
  49. var ServiceEnabled = "0";
  50. var ServiceOp = "";
  51. var ServiceLUPRecLength = 4;
  52.  
  53. var ELIndex = 0; 
  54. var ELName = "";
  55. var ELCount = 0;
  56. var ELOp = false;
  57.  
  58. var WatchIndex = 0; 
  59. var WatchName = "";
  60. var WatchRecLength = 23; // Watch/Alert Lookup record length
  61. var WatchCount = 0;
  62. var WatchLookup = false;
  63. var AGNArray = new Array();
  64. var ServicesType = "0", CounterType = "1", EventLogType ="2", UserType = "3";
  65. var CurrentAT = "0";
  66. var AGFinalIdx = 0;
  67. var AGFinal = false;
  68.  
  69. var ReportIndex = 0; 
  70. var ReportName = "";
  71. var ReportRecLength = 7; // Report Lookup record length
  72. var ReportCount = 0;
  73.  
  74. var SNMPTrapIndex = 0; 
  75. var SNMPTrapName = "";
  76. var SNMPTrapCount = 0;
  77.  
  78. var SNMPTMarr = new Array();
  79. var SNMPTrapLupRecCount = 0;
  80.  
  81. var OIDIndex = 0; 
  82. var OIDName = "";
  83. var OIDCount = 0;
  84. var OIDArray = new Array();
  85. var OIDRecLength = 4;
  86.  
  87. var NumberOfSelects = 0; // Used to determine the level of the Export
  88. var SNMPTrapLevel = 9; // Number of selects which implies SNMP Traps were Exported
  89.  
  90. var borderSz = 2; // Thin Bord is 2pixels
  91. var Srd = null; // Server root directory
  92. var Tid = null;
  93.  
  94.  
  95. // Capture and ignore script errors
  96.     window.onerror = wwScrErr;
  97. function wwScrErr() {
  98.     return true;
  99. }
  100.  
  101. /* On Load tell the Comm control to Connect to the Server */
  102. function processOnLoad() {
  103.     Hp = parseInt(document.body.RPMHostPort,10);
  104.     RpmCC_AC.Connect(document.body.RPMHostIP,Hp, "");
  105. }
  106. function processUnload() {
  107.     RpmCC_AC.Disconnect();
  108.     top.banner.processStopCommX();
  109.     if ( Tid != null ) {
  110.         clearTimeout(Tid); // stop timeout routine
  111.     }
  112. }
  113.  
  114. function processStartButton() {
  115.     SetButtonState(CStartButton,"1");
  116.     SetCursor("wait");
  117.     top.banner.processStartComm();
  118.     RpmCC_AC.GetServerRootDir();    // get server root directory; wait for response
  119. }
  120. function processDBUpdateContinue() {
  121.     var wH = RpmCC_AC.OpenLocalFile(Srd+"\\AdminData.sav");
  122.     if ( wH == 0 ) {
  123.         alert("Error opening file '"+Srd+"\\AdminData.sav' to retrieve 'Admin' Data");
  124.         updateStatusMessage("<br>-Error opening file '"+Srd+"\\AdminData.sav' to retrieve 'Admin' Data");
  125.         processResetButton(); // reset
  126.         return;
  127.     }
  128.     else {
  129.         var aD = RpmCC_AC.ReadLn(wH); // read data
  130.         if ( aD.length < 2 ) {
  131.             alert("Error opening/reading file '"+Srd+"\\AdminData.sav' to retrieve 'Admin' Data.");
  132.             updateStatusMessage("<br>-Error opening/reading file '"+Srd+"\\AdminData.sav' to retrieve 'Admin' Data.");
  133.             processResetButton(); // reset
  134.             return;
  135.         }
  136.         AdminDataStore.innerHTML = aD; // save data
  137.         RpmCC_AC.CloseLocalFile(wH); // close file
  138.         NumberOfSelects = document.all.tags("select").length;
  139.         updateStatusMessage("<br>{Importing MonitorIT SERVER Records}<br>");
  140.         Tid = setTimeout("processServerRecordAdd()",10); // get Server records
  141.     }
  142. }
  143. function processServerRecordAdd() {    
  144.     Tid = null;
  145.     if ( ServerIndex < AC_SrvStore.length ) {
  146.         // Start Write of MonitorIT Server Records
  147.         ServerName = AC_SrvStore[ServerIndex+0].text;
  148.         rstat = RpmCC_AC.ServersAdd(ServerName,
  149.                         AC_SrvStore[ServerIndex+2].text,AC_SrvStore[ServerIndex+3].text,
  150.                             AC_SrvStore[ServerIndex+4].text); 
  151.         if ( !rstat ) { // if OK on initiate request        
  152.             ignoreDBChangeEvent = true;
  153.             ServerIndex += ServerRecLength;
  154.             return;
  155.         }
  156.     }
  157.     updateStatusMessage("-Total of "+(ServerIndex/ServerRecLength)+" SERVER Record(s) Processed<br>");
  158.     updateStatusMessage("-Total of "+ServerCount+" SERVER Record(s) Added<br>");
  159.     updateStatusMessage("<br>{Importing GROUP Records}<br>");
  160.     Tid = setTimeout("processGroupRecordAdd()",10); // get Group records
  161. }
  162. function processGroupRecordAdd() {    
  163.     Tid = null;
  164.     if ( GroupIndex < AC_GrpStore.length ) {
  165.         // Start Write of Group Records
  166.         GroupName = AC_GrpStore[GroupIndex+0].text;
  167.         rstat = RpmCC_AC.GroupAdd(GroupName,AC_GrpStore[GroupIndex+2].text); 
  168.         if ( !rstat ) { // if OK on initiate request        
  169.             ignoreDBChangeEvent = true;
  170.             GroupIndex += GroupRecLength;
  171.             return;
  172.         }
  173.     }
  174.     // Done Importing Groups
  175.     updateStatusMessage("-Total of "+(GroupIndex/GroupRecLength)+" GROUP Record(s) Processed<br>");
  176.     updateStatusMessage("-Total of "+GroupCount+" GROUP Record(s) Added<br>");
  177.     updateStatusMessage("<br>{Importing SERVER/COMPUTER Records}<br>");
  178.     AC_GrpStore.innerHTML = ""; // clear Group Store
  179.     GroupLookupFlag = true;
  180.     if ( RpmCC_AC.GroupLookup("","","") ) { // Lookup Groups to get IDs
  181.         updateStatusMessage("Unable to start the GROUP LOOKUP request<br>");
  182.         processResetButton(); // reset
  183.     }
  184. }
  185. /* Process Group LOOKUP RECORD Event */
  186. function processGroupLookupRecord(Gid,GrpName,GrpDesc) {
  187.     GStoreObj = document.all.AC_GrpStore;
  188.     addElementToSelect(GStoreObj,GrpName);
  189.     addElementToSelect(GStoreObj,Gid);
  190.     addElementToSelect(GStoreObj,GrpDesc);
  191.     addElementToSelect(GStoreObj,0);
  192. }
  193. /* Process DB Error in Group Lookup Operation */
  194. function processGroupOpError() {
  195.     updateStatusMessage("An error occurred during GROUP LOOKUP operation<br>");
  196.     processResetButton(); // reset
  197. }
  198. /* Process Group OP Complete Event */
  199. function processGroupOpComplete() {
  200.     Tid = setTimeout("processComputerRecordAdd()",10); // get Computer records
  201. }
  202. function processComputerRecordAdd() {    
  203.     Tid = null;
  204.     if ( ComputerIndex < AC_Store.length ) {
  205.         // Start Write of Server/Computer Records
  206.         ComputerName = AC_Store[ComputerIndex+0].text;
  207.         CGrpID = getGroupID( AC_Store[ComputerIndex+1].text );
  208.         CDesc = AC_Store[ComputerIndex+2].text;
  209.         CPswd = AC_Store[ComputerIndex+3].text;
  210.         COSver = AC_Store[ComputerIndex+4].text;
  211.         CIP = AC_Store[ComputerIndex+5].text;
  212.         CPort = AC_Store[ComputerIndex+6].text;
  213.         CSrvID = getServerID( AC_Store[ComputerIndex+7].text );
  214.         CMonStart = "";    CMonStop = ""; CMonSched = 16843008;
  215.         CDlvStart = ""; CDlvStop = ""; CDlvSched = 16843008;
  216.         rstat = RpmCC_AC.ComputerAdd(ComputerName,CGrpID,CSrvID,CPswd,CDesc,CIP,CPort,COSver,
  217.                         CMonStart,CMonStop,CMonSched,CDlvStart,CDlvStop,CDlvSched);        
  218.         if ( !rstat ) { // if OK on initiate request        
  219.             ignoreDBChangeEvent = true;
  220.             ComputerIndex += ComputerRecLength;
  221.             return;
  222.         }
  223.     }
  224.     updateStatusMessage("-Total of "+(ComputerIndex/ComputerRecLength)+" SERVER/COMPUTER Record(s) Processed<br>");
  225.     updateStatusMessage("-Total of "+(ComputerCount/2)+" SERVER/COMPUTER Record(s) Added<br>");
  226.     // Lookup computers to get all IDs if not all processed were added
  227.     if ( ComputerIndex/ComputerRecLength != ComputerCount/2 ) {
  228.         ComputerLookupFlag = true; // set flag
  229.         ComputerCount = 0;
  230.         CArray.length = 0; 
  231.         if ( RpmCC_AC.ComputerLookup("*","*") ) {
  232.             updateStatMessage("-Unable to start the SERVER/COMPUTER LOOKUP request<br>");
  233.             processResetButton(); // reset
  234.         }
  235.     }
  236.     else {
  237.         processComputerLookupDone();
  238.     }
  239. }
  240. /* Process Computer Lookup Complete Event */
  241. function processComputerLookupDone() {
  242.     updateStatusMessage("<br>{Importing WATCH/ALERT Records}<br>");
  243.     Tid = setTimeout("processWatchRecordAdd()",10); // go next with Watch/Alert record
  244. }
  245. function processWatchRecordAdd() {
  246.     Tid = null;
  247.     if ( WatchIndex < AC_AlertStore.length ) {
  248.         // Start Write of User Records
  249.         WatchName = AC_AlertStore[WatchIndex+0].text;
  250.         ADsc = AC_AlertStore[WatchIndex+2].text;
  251.         AThr = AC_AlertStore[WatchIndex+3].text;
  252.         AUnd = AC_AlertStore[WatchIndex+4].text;
  253.         AEvt = AC_AlertStore[WatchIndex+5].text;
  254.         ADur = AC_AlertStore[WatchIndex+6].text;
  255.         ASch = AC_AlertStore[WatchIndex+7].text;
  256.         ASdt = AC_AlertStore[WatchIndex+8].text;
  257.         AEdt = AC_AlertStore[WatchIndex+9].text;
  258.         AAid = AC_AlertStore[WatchIndex+10].text;
  259.         ARit = AC_AlertStore[WatchIndex+11].text;
  260.         AEp = AC_AlertStore[WatchIndex+12].text;
  261.         AArg = AC_AlertStore[WatchIndex+13].text;
  262.         AEno = AC_AlertStore[WatchIndex+14].text;
  263.         AEad = AC_AlertStore[WatchIndex+15].text;
  264.         AEs = AC_AlertStore[WatchIndex+16].text;
  265.         APhn = AC_AlertStore[WatchIndex+17].text;
  266.         APhnb = AC_AlertStore[WatchIndex+18].text;
  267.         ATtk = AC_AlertStore[WatchIndex+19].text;
  268.         APg = AC_AlertStore[WatchIndex+20].text;
  269.         APgnb = AC_AlertStore[WatchIndex+21].text;
  270.         ATtn = AC_AlertStore[WatchIndex+22].text;
  271.         CurrentAT = getCurrentAT(ASdt);
  272.         //if ( (CurrentAT = getCurrentAT(ASdt)) == CounterType ) {
  273.         //    AAid = processCounterAlert(AAid); // adjust Counter Alert
  274.         //}
  275.         lpreID = RpmCC_AC.AlertGroupPreliminaryAdd1(WatchName,ADsc,AThr,AUnd,
  276.                                                                     AEvt,ADur,ASch,ASdt,AEdt,AAid);
  277.         prelimID = ""+lpreID; // convert to string
  278.         rstat = RpmCC_AC.AlertGroupPreliminaryAdd2(prelimID,ARit,AEp,AArg,AEno,
  279.                                                                     AEad,AEs,APhn,APhnb,ATtk,APg,APgnb,ATtn);
  280.         if ( rstat != (-1) ) {
  281.             rstat = RpmCC_AC.AlertGroupCommitAdd(prelimID);
  282.         }
  283.         if ( !rstat ) { // if OK on initiate request        
  284.             ignoreDBChangeEvent = true;
  285.             WatchIndex += WatchRecLength;
  286.             return;
  287.         }
  288.     }
  289.     processWatchRecordDone();
  290. }
  291. function processWatchRecordDone() {
  292.     updateStatusMessage("-Total of "+(WatchIndex/WatchRecLength)+" WATCH/ALERT Record(s) Processed<br>");
  293.     updateStatusMessage("-Total of "+(WatchCount/3)+" WATCH/ALERT Record(s) Added<br>");
  294.     if ( WatchIndex/WatchRecLength != WatchCount/3 ) {
  295.         WatchLookup = true; // set flag
  296.         WatchCount = 0;
  297.         AGNArray.length = 0; 
  298.         if ( RpmCC_AC.AlertGroupLookup("*") ) {
  299.             updateStatMessage("-Unable to start the WATCH/ALERT LOOKUP request<br>");
  300.             processResetButton(); // reset
  301.         }
  302.     }
  303.     else {
  304.         processAlertGroupLookupDone();
  305.     }
  306. }
  307. function processAlertGroupLookupDone() {
  308.     updateStatusMessage("<br>{Importing SERVICES Records}<br>");
  309.     if ( CArray.length > 0 ) {
  310.         Tid = setTimeout("processServicesRecordAdd()",10); // get Services records
  311.     }
  312.     else {
  313.         processServicesRecordDone();
  314.     }
  315. }
  316. function processServicesRecordAdd() {
  317.     Tid = null;
  318.     ServiceOp = "Add";
  319.     var warr = new Array;
  320.     if ( ServiceIndex < AC_ServicesStore.length ) {
  321.         var SAstrg = AC_ServicesStore[ServiceIndex].text;
  322.         warr = SAstrg.split("~");
  323.         ServiceName = warr[2];
  324.         ComputerName = warr[0];
  325.         warr[0] = getComputerID(warr[0]); // get Comp ID from name
  326.         warr[1] = getAlertGroupID(warr[1]); // get AGID from name
  327.         SAstrg = warr[0]+"~"+warr[1]+"~"+warr[2]+"~"+warr[3]+"~"+warr[4]+"~"+warr[5];
  328.         SAstrg += "~"+warr[11]+"~"+warr[12]+"~"+warr[13]+"~"+warr[14];
  329.         AC_ServicesStore[ServiceIndex].text = warr.join("~");
  330.         rstat = RpmCC_AC.ServicesAdd(SAstrg);    
  331.         if ( !rstat ) { // if OK on initiate request        
  332.             ++ServiceIndex;
  333.             ignoreDBChangeEvent = true;
  334.             return;
  335.         }
  336.     }
  337.     processServicesRecordDone();
  338. }
  339. function processServicesRecordDone() {
  340.     ServiceOp = "";
  341.     updateStatusMessage("-Total of "+ServiceIndex+" SERVICES Record(s) Processed<br>");
  342.     updateStatusMessage("-Total of "+ServiceCount+" SERVICES Record(s) Added<br>");
  343.     updateStatusMessage("<br>{Importing EVENT LOG WATCH Records}<br>");
  344.     Tid = setTimeout("processELRecordAdd()",10); // get EL records
  345. }
  346. function processELRecordAdd() {
  347.     Tid = null;
  348.     ELOp= true;
  349.     var warr = new Array;
  350.     if ( ELIndex < AC_ELStore.length ) {
  351.         var ELstrg = AC_ELStore[ELIndex].text;
  352.         warr = ELstrg.split("~");
  353.         ELName = warr[2]; // Alert Group Name
  354.         ComputerName = warr[1];
  355.         warr[1] = getComputerID(warr[1]); // get Comp ID from name
  356.         warr[2] = getAlertGroupID(warr[2]); // get AGID from name
  357.         ELstrg = warr[2]+"~"+warr[0]+"~"+warr[1];
  358.         for ( var i=3; i<16; i++ ) {    
  359.             ELstrg += "~"+warr[i];
  360.         }
  361.         AC_ELStore[ELIndex].text = ELstrg;
  362.         rstat = RpmCC_AC.ELMonitorAdd(ELstrg);    
  363.         if ( !rstat ) { // if OK on initiate request        
  364.             ignoreDBChangeEvent = true;
  365.             ++ELIndex;
  366.             return;
  367.         }
  368.     }
  369.     processELRecordDone();
  370. }
  371. function processELRecordDone() {
  372.     ELOp = false;
  373.     updateStatusMessage("-Total of "+ELIndex+" EVENT LOG WATCH Record(s) Processed<br>");
  374.     updateStatusMessage("-Total of "+ELCount+" EVENT LOG WATCH Record(s) Added<br>");
  375.     if ( NumberOfSelects >= SNMPTrapLevel ) {
  376.         updateStatusMessage("<br>{Importing SNMP OID Definition Records}<br>");
  377.         OIDArray = AC_TrapMonitorStore.OIDDefs.split("~"); // parse
  378.         Tid = setTimeout("processOIDDefsRecordAdd()",10); // get OID records
  379.     }
  380.     else {
  381.         updateStatusMessage("<br>{Importing USER Records}<br>");
  382.         Tid = setTimeout("processUserRecordAdd()",10); // get User records
  383.     }
  384. }
  385. function processOIDDefsRecordAdd() {
  386.     Tid = null;
  387.     if ( OIDIndex < OIDArray.length-1 ) {
  388.         var Ostrg = OIDArray[OIDIndex+1]+"~"+OIDArray[OIDIndex+2]+"~"+OIDArray[OIDIndex+3];
  389.         OIDName = OIDArray[OIDIndex+1];
  390.         rstat = RpmCC_AC.OidDefs("1","0",Ostrg);    
  391.         if ( !rstat ) { // if OK on initiate request        
  392.             ignoreDBChangeEvent = true;
  393.             OIDIndex += OIDRecLength;
  394.             return;
  395.         }
  396.     }
  397.     processOIDDefsDone();
  398. }
  399.  
  400. function processOIDDefsDone() {
  401.     updateStatusMessage("-Total of "+(OIDIndex/OIDRecLength)+" OID Definition Record(s) Processed<br>");
  402.     updateStatusMessage("-Total of "+OIDCount+" OID Definition Record(s) Added<br>");
  403.     updateStatusMessage("<br>{Importing SNMP Trap WATCH Records}<br>");
  404.     if ( RpmCC_AC.EnumSnmpTrapMonitor() ) { // if unable to initiate request    
  405.         updateStatusMessage("Unable to start the SNMP Trap Monitor LOOKUP request<br>");
  406.         processResetButton(); // reset
  407.     }
  408. }
  409. function processEnumSnmpTrapMonitor(TMstrg) {
  410.     // get and save current SNMP Trap Monitorir Records to filter out duplicates
  411.     var warr = new Array();
  412.     // If done reading all records
  413.     if ( TMstrg == "Done" ) {
  414.         Tid = setTimeout("processSNMPTrapRecordAdd()",10); // get SNMP Trap records
  415.     }
  416.     else {
  417.         // Check if error
  418.         warr = TMstrg.split(":");
  419.         if ( warr[0] == "Err" ) {
  420.             updateStatusMessage("An Error occurred reading SNMP Trap WATCH records<br>");
  421.             Tid = setTimeout("processSNMPTrapRecordDone()",10); // skip SNMP Trap records
  422.          }
  423.          // Otherwise, process record
  424.         else {
  425.             var si = TMstrg.indexOf("~"); // strip off the Trap Monitor ID.
  426.             TMstrg = TMstrg.substring(si+1,TMstrg.length)
  427.               SNMPTMarr[SNMPTrapLupRecCount] = TMstrg; // save TrapMonitor Record
  428.               ++SNMPTrapLupRecCount;
  429.           }
  430.       }
  431. }
  432. function processSNMPTrapRecordAdd() {
  433.     Tid = null;
  434.     var warr = new Array;
  435.     if ( SNMPTrapIndex < AC_TrapMonitorStore.length ) {
  436.         var TMstrg = AC_TrapMonitorStore[SNMPTrapIndex].text;
  437.         var si = TMstrg.indexOf("~"); // strip off the Trap Monitor ID.
  438.         TMstrg = TMstrg.substring(si+1,TMstrg.length)
  439.         warr = TMstrg.split("~");
  440.         SNMPTrapName = warr[2]; // Alert Group Name
  441.         ComputerName = warr[1];
  442.         warr[1] = getComputerID(warr[1]); // get Comp ID from name
  443.         warr[2] = getAlertGroupID(warr[2]); // get AGID from name
  444.         TMstrg = warr.join("~")
  445.         AC_TrapMonitorStore[SNMPTrapIndex].text = TMstrg;
  446.         // Check if duplicate
  447.         for ( var i=0; i<SNMPTMarr.length; i++ ) {
  448.             if ( SNMPTMarr[i] == TMstrg ) { // if already exists, ignore
  449.                  ++SNMPTrapIndex;
  450.                 updateStatusMessage("-Duplicate Record: '"+SNMPTrapName+"' for '"+ComputerName+"'<br>");
  451.                  Tid = setTimeout("processSNMPTrapRecordAdd()",10); // get SNMP Trap records
  452.                  return;
  453.              }
  454.         }
  455.         // otherwise, add
  456.         rstat = RpmCC_AC.SnmpTrapMonitorAdd(TMstrg);    
  457.         if ( !rstat ) { // if OK on initiate request        
  458.             ignoreDBChangeEvent = true;
  459.             ++SNMPTrapIndex;
  460.             return;
  461.         }
  462.     }
  463.     processSNMPTrapRecordDone();
  464. }
  465. function processSNMPTrapRecordDone() {
  466.     updateStatusMessage("-Total of "+SNMPTrapIndex+" SNMP Trap WATCH Record(s) Processed<br>");
  467.     updateStatusMessage("-Total of "+SNMPTrapCount+" SNMP Trap WATCH Record(s) Added<br>");
  468.     updateStatusMessage("<br>{Importing USER Records}<br>");
  469.     Tid = setTimeout("processUserRecordAdd()",10); // get User records
  470. }
  471. function processUserRecordAdd() {    
  472.     Tid = null;
  473.     if ( UserIndex < AC_UserStore.length ) {
  474.         // Start Write of User Records
  475.         UserName = AC_UserStore[UserIndex+0].text;
  476.         rstat = RpmCC_AC.UserAdd(UserName,AC_UserStore[UserIndex+2].text,
  477.                         AC_UserStore[UserIndex+3].text,
  478.                         ((AC_UserStore[UserIndex+4].text == "checked")?"1":"0"),
  479.                             ((AC_UserStore[UserIndex+5].text == "checked")?"1":"0")   ); 
  480.         if ( !rstat ) { // if OK on initiate request        
  481.             ignoreDBChangeEvent = true;
  482.             UserIndex += UserRecLength;
  483.             return;
  484.         }
  485.     }
  486.     updateStatusMessage("-Total of "+(UserIndex/UserRecLength)+" USER Record(s) Processed<br>");
  487.     updateStatusMessage("-Total of "+UserCount+" USER Record(s) Added<br>");
  488.     updateStatusMessage("<br>{Importing REPORT Records}<br>");
  489.     Tid = setTimeout("processReportRecordAdd()",10); // go next with Report record
  490. }
  491. function processReportRecordAdd() {
  492.     Tid = null;
  493.     var warr = new Array;
  494.     if ( ReportIndex < AR_RptStore.length ) {
  495.         // Start Write of Report Records
  496.         ReportName = AR_RptStore[ReportIndex+0].text;
  497.         RptDesc = AR_RptStore[ReportIndex+2].text;
  498.         RptAIA = AR_RptStore[ReportIndex+4].text;
  499.         RptCIA = getComputerIDArray(AR_RptStore[ReportIndex+5].text);
  500.         rstat = RpmCC_AC.AdminReportsAdd(ReportName,RptDesc,RptAIA,RptCIA);
  501.         if ( !rstat ) { // if OK on initiate request        
  502.             ignoreDBChangeEvent = true;
  503.             ReportIndex += ReportRecLength;
  504.             return;
  505.         }
  506.     }
  507.     processReportRecordDone();
  508. }
  509. function processReportRecordDone() {
  510.     updateStatusMessage("-Total of "+(ReportIndex/ReportRecLength)+" REPORT Record(s) Processed<br>");
  511.     updateStatusMessage("-Total of "+ReportCount+" REPORT Record(s) Added<br>");
  512.     Tid = setTimeout("processAlertGroupFinal()",10); // Done
  513. }
  514. function processAlertGroupFinal() {
  515.     AGFinal = true;
  516.     ServiceOp = "Enable";
  517.     var warr = new Array;
  518.     var SrvcCompArr = new Array;
  519.     // Complete processing of each Alert group
  520.     for (var i=AGFinalIdx; i < AGNArray.length; i+=3) {    
  521.         // If Service Type, Enable Services if necessary
  522.         if ( AGNArray[i+2] == ServicesType ) {
  523.             for ( var j=0,k=0; j<AC_ServicesStore.length; ++j ) {
  524.                 warr = AC_ServicesStore[j].text.split("~"); // parse
  525.                 if ( (warr[1] == AGNArray[i+1]) && (warr[10] == "0") ) { // if match on AGID & Enabled 
  526.                     SrvcCompArr[k++] = warr[0]; // save Computer ID
  527.                     ServiceType = (warr[2] == "SQL") ? "SQLCONNECT" : warr[2];
  528.                     ServiceFreq = warr[6]+","+warr[7]+","+warr[8]+","+warr[9];
  529.                     ServiceAGID = warr[1]; 
  530.                 }
  531.             }
  532.             ServiceCID = (SrvcCompArr.sort()).join(",");
  533.             rstat = RpmCC_AC.ServicesAlertEnabled(ServiceType,ServiceFreq,ServiceAGID,ServiceCID); 
  534.             if ( !rstat ) { // if OK on initiate request        
  535.                 ignoreDBChangeEvent = true;
  536.                 AGFinalIdx+=3;
  537.                 return;
  538.             }
  539.         }
  540.         // Check other Alert Types
  541.      }
  542.      // Done checking all Alert Groups
  543.     Tid = setTimeout("processGlobalSettings()",10); // Done
  544. }     
  545. function processGlobalSettings() {
  546.     updateStatusMessage("<br>{Importing GLOBAL Settings}<br>");
  547.     
  548.     if ( RpmCC_AC.SecuritySet(((AC_UserStore.SecuritySetting == true) ? "1" : "0")) ) {
  549.         updateStatusMessage("-Unable to save Global Enable Security settingd<br>");
  550.     }
  551.     if ( RpmCC_AC.SetAutoAgentRegister(((AC_UserStore.AutoAgentSetting == true) ? "1" : "0")) ) {
  552.         updateStatusMessage("-Unable to save Auto Agent Registration setting<br>");
  553.     }
  554.  
  555.     RpmCC_AC.SetGlobalSMTP(AC_AlertStore.SMTPSetting); // save Global setting
  556.     RpmCC_AC.SetGlobalBeeper(AC_AlertStore.BeeperSetting); // save Global setting
  557.  
  558.     updateStatusMessage("<br>");
  559.     Tid = setTimeout("processImportDone()",10); // Done
  560. }
  561. function processImportDone() {
  562.     updateStatusMessage("Done Importing Saved 'Admin' Data<br>");
  563.     RpmCC_AC.RegSetKey("AdminDataSaved","0"); // save flag
  564.     processResetButton(); // reset
  565. }
  566.  
  567.  
  568. /* Get Group ID from Store based on Group Name */
  569. function getGroupID(GNM) {
  570.     var GID = 0;
  571.     for (var i=0; i < AC_GrpStore.length; i+=GroupRecLength) {
  572.         if ( AC_GrpStore.options[i].text == GNM ) {
  573.             GID = AC_GrpStore.options[i+1].text;
  574.             break;
  575.         }
  576.     }
  577.     return GID;
  578. }
  579. function getServerID(SvNm) {
  580.     var SvID = 0;
  581.     for (var i=0; i < AC_SrvStore.length; i+=ServerRecLength) {
  582.         if ( AC_SrvStore.options[i].text == SvNm ) {
  583.             SvID = AC_SrvStore.options[i+1].text;
  584.             break;
  585.         }
  586.     }
  587.     return SvID;
  588. }
  589. function getComputerID(Cnme) {
  590.     var CID = "";
  591.     for (var i=0; i < CArray.length; i+=2) {
  592.         if ( CArray[i] == Cnme ) {
  593.             CID = CArray[i+1];
  594.             break;
  595.         }
  596.     }
  597.     return CID;
  598. }
  599. function getComputerIDArray(CNA) {
  600.     var warr = new Array();
  601.     warr = CNA.split(","); //parse out the Computer Names
  602.     for ( var i=0; i<warr.length; i++ ) {
  603.         warr[i] = getComputerID(warr[i]);   
  604.     }
  605.     var CIA = warr.join(",");
  606.     return CIA;
  607. }
  608. function getAlertGroupID(AGN) {
  609.     var AGID = "";
  610.     for (var i=0; i < AGNArray.length; i+=3) {
  611.         if ( AGNArray[i] == AGN ) {
  612.             AGID = AGNArray[i+1];
  613.             break;
  614.         }
  615.     }
  616.     return AGID;
  617. }
  618.  
  619. function processResetButton() {
  620.     SetCursor("auto");
  621.       top.banner.processStopCommX();
  622.    StatusPrintButton.disabled = ""; // enable button   
  623.     if ( top.banner.IE55orBetter ) {
  624.         StatusMessage.scrollIntoView(false);
  625.     }
  626. }
  627.  
  628. function SetCursor(ctyp) {
  629.     document.body.style.cursor=ctyp;
  630. }
  631. function updateStatusMessage(sMsg) {
  632.     if ( top.banner.IE55orBetter ) {
  633.         StatusMessage.insertAdjacentHTML("beforeEnd",sMsg);
  634.         StatusMessage.scrollIntoView(false);
  635.     }
  636.     else {
  637.         StatusMessageDiv.insertAdjacentHTML("beforeEnd",sMsg);
  638.     }
  639. }
  640. function SetButtonState(BtObj,BState) {
  641.     BtObj.disabled = (BState == "0") ? "" : "disabled";
  642.     BtObj.bdis = BState;
  643. }
  644. /* Add an <Option> entry with the text to the specified <Select> */
  645. function addElementToSelect(SelectObj,text) {
  646.     var el = document.createElement("OPTION");
  647.     el.text = text;
  648.     SelectObj.options.add(el);
  649.     return el;
  650. }
  651.  
  652. function processCounterAlert(COC) {
  653.     var OCarr = new Array();
  654.     var warr = new Array();
  655.     OCarr = COC.split(";"); // get C,O,Cnt triplets
  656.     for ( var j=0; j<OCarr.length; j++ ) {
  657.          warr = OCarr[j].split(","); // split out Cid
  658.          warr[0] = getComputerID(warr[0]); // convert Name to CID
  659.          OCarr[j] = warr.join(","); // reform
  660.     }
  661.     var nCOC = OCarr.join(";"); // put triplets back
  662.     return nCOC; 
  663. }
  664. function getCurrentAT(CSdt) {
  665.     // Determine Alert Type
  666.     if ( CSdt == "01/01/1999 11:30:00" || CSdt == "1/1/1999 11:30:0" ) { 
  667.         CurAT = ServicesType;
  668.     }
  669.     else if ( CSdt == "01/01/1999 11:50:00" || CSdt == "1/1/1999 11:50:0" ) { 
  670.         CurAT = UserType;
  671.     }
  672.     else if ( CSdt == "01/01/1999 11:40:00" || CSdt == "1/1/1999 11:40:0" ) { 
  673.         CurAT = EventLogType;
  674.     }
  675.     else {
  676.         CurAT = CounterType;
  677.     }
  678.     return CurAT;
  679. }    
  680.  
  681. function PopUpContextOpen() {
  682. }
  683. function PopUpContextClose() {
  684. }
  685.  
  686. // Print Status
  687. var DiscStatWindow = null;
  688. function processPrintStatus() {
  689.     if ( !top.banner.IE55orBetter ) {
  690.         alert("Print requires IE 5.5/SP1 or greater. Download current, free IE update from Microsoft's web site");
  691.         return;
  692.     }
  693.     FakeBut.click();    // simulate event to call "savePageCoord(...)"
  694.     var wprop = "height="+top.banner.bCh+",width="+top.banner.bCw
  695.     wprop += ",top="+(top.banner.bY-28)+",left="+(top.banner.bX-4)+",scrollbars";
  696.     var rName = ""+Math.random(); // use Random number to get unique Window name
  697.     rName = rName.substring(2,rName.length);
  698.     DiscStatWindow = window.open("",rName,wprop);
  699.     if ( DiscStatWindow == null ) {
  700.         return;   
  701.     }
  702.     var dh = "<html><head><title>MonitorIT - 'Admin' Data IMPORT Status Report</title>";
  703.     dh += "<link rel='stylesheet' type='text/css' href='css/Rpmstyle.css'>";
  704.     dh += "<style>#StatusMessage {height:280; width:400; font-family:arial; ";
  705.     dh += "font-size: 10pt; font-weight: 700; color: windowtext;}</style></head><body";
  706.     dh += " title='Exit to Close Window when Printing is complete'>"; 
  707.     dh += StatusMessageDiv.innerHTML;
  708.     dh += '<script LANGUAGE="JavaScript">window.focus();';
  709.     dh += ' </script></body></html>';
  710.     DiscStatWindow.document.open();
  711.     DiscStatWindow.document.write(dh)
  712.     DiscStatWindow.document.close();
  713.     DiscStatWindow.print();
  714. }
  715.  
  716.  
  717. //-->
  718. </script>
  719. <script LANGUAGE="JavaScript" src="js/MiscFunc.js"></script>
  720.    
  721. </head>
  722.  
  723. <body class="bodyc" style="margin:2px;" RPMHostIP="!BreakoutBot:MonitorIP!"
  724. RPMHostPort="!BreakoutBot:MonitorPort!" RPMUserName="!BreakoutBot:UserName!" RPMCollectorPort="!BreakoutBot:CollectorPort!" RPMAgentPort="!BreakoutBot:AgentListenPort!"
  725. onload="top.banner.savePageCoord(event,document.body,'AdminDataBase');processOnLoad();" onbeforeunload="processUnload()" onclick="checkClick()" onkeydown="processBSP()">
  726.  
  727. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="ServerRootDir(srvrdir)">
  728. <!--
  729. Srd = srvrdir;
  730. Tid = setTimeout("processDBUpdateContinue()",100); // Delay then process
  731. //-->
  732. </script>
  733.  
  734. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="Connected()">
  735. <!--
  736. //-->
  737. </script> 
  738.  
  739. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="UserAddErrorDuplicate()">
  740. <!--
  741. updateStatusMessage("-Duplicate Record: '"+UserName+"'<br>");
  742. Tid = setTimeout("processUserRecordAdd()",10); // get next User record
  743. //-->
  744. </script>
  745. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="UserErrorAddDuplicate()">
  746. <!--
  747. updateStatusMessage("-Duplicate Record: '"+UserName+"'<br>");
  748. Tid = setTimeout("processUserRecordAdd()",10); // get next User record
  749. //-->
  750. </script> 
  751. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="UserOpComplete()">
  752. <!--
  753. ++UserCount;
  754. Tid = setTimeout("processUserRecordAdd()",10); // get next User record
  755. //-->
  756. </script>
  757.  
  758. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="UserOpError()">
  759. <!--
  760. updateStatusMessage("-Update Error: '"+UserName+"'<br>");
  761. Tid = setTimeout("processUserRecordAdd()",10); // get next User record
  762. //-->
  763. </script> 
  764.  
  765. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="ServersAddErrorDuplicate()">
  766. <!--
  767. updateStatusMessage("-Duplicate Record: '"+ServerName+"'<br>");
  768. Tid = setTimeout("processServerRecordAdd()",10); // get next Server record
  769. //-->
  770. </script>
  771. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="ServersOpComplete()">
  772. <!--
  773. ++ServerCount;
  774. Tid = setTimeout("processServerRecordAdd()",10); // get next Server record
  775. //-->
  776. </script> <script
  777. LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="ServersOpError()">
  778. <!--
  779. updateStatusMessage("-Update Error: '"+ServerName+"'<br>");
  780. Tid = setTimeout("processServerRecordAdd()",10); // get next Server record
  781. //-->
  782. </script>
  783.  
  784. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="GroupAddErrorDuplicate()">
  785. <!--
  786. updateStatusMessage("-Duplicate Record: '"+GroupName+"'<br>");
  787. Tid = setTimeout("processGroupRecordAdd()",10); // get next Group record
  788. //-->
  789. </script>
  790. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="GroupOpComplete()">
  791. <!--
  792. if ( GroupLookupFlag ) {
  793.     processGroupOpComplete();
  794. }
  795. else {
  796.     ++GroupCount;
  797.     Tid = setTimeout("processGroupRecordAdd()",10); // get next Group record
  798. }
  799. //-->
  800. </script>
  801. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="GroupOpError()">
  802. <!--
  803. if ( GroupLookupFlag ) {
  804.     processGroupOpError()
  805. }
  806. else {
  807.     updateStatusMessage("-Update Error: '"+GroupName+"'<br>");
  808.     Tid = setTimeout("processGroupRecordAdd()",10); // get next Group record
  809. }
  810. //-->
  811. </script>
  812. <script FOR="RpmCC_AC" EVENT="GroupLookupRecord(Gid,GNme,GDesc)">
  813. <!--
  814. processGroupLookupRecord(Gid,GNme,GDesc);
  815. //-->
  816. </script> 
  817.  
  818. <script FOR="RpmCC_AC" EVENT="ComputerAddOpComplete(cid)">
  819. <!--
  820. // Save computer name and ID
  821. CArray[ComputerCount++] = ComputerName;
  822. CArray[ComputerCount++] = cid;
  823. Tid = setTimeout("processComputerRecordAdd()",10); // get next Computer record
  824. //-->
  825. </script>
  826. <script FOR="RpmCC_AC" EVENT="ComputerAddErrorLicense()">
  827. <!--
  828. updateStatusMessage("-At License Max, Record: '"+ComputerName+"' Not Added<br>");
  829. Tid = setTimeout("processComputerRecordAdd()",10); // get next Computer record
  830. //-->
  831. </script>
  832. <script FOR="RpmCC_AC" EVENT="ComputerOpError()">
  833. <!--
  834. if ( ComputerLookupFlag ) {
  835.     updateStatusMessage("-Server/Computer Lookup Read Error<br>");
  836.    processResetButton();
  837. }
  838. else {
  839.     updateStatusMessage("-Update Error: '"+ComputerName+"'<br>");
  840.     Tid = setTimeout("processComputerRecordAdd()",10); // get next Computer record
  841. }
  842. //-->
  843. </script>
  844. <script FOR="RpmCC_AC" EVENT="ComputerAddErrorDuplicate()">
  845. <!--
  846. updateStatusMessage("-Duplicate Record: '"+ComputerName+"'<br>");
  847. Tid = setTimeout("processComputerRecordAdd()",10); // get next Computer record
  848. //-->
  849. </script>
  850. <script FOR="RpmCC_AC" EVENT="ComputerAddErrorBadGroup()">
  851. <!--
  852. updateStatusMessage("-Invalid Group, Record: '"+ComputerName+"' Not Added<br>");
  853. Tid = setTimeout("processComputerRecordAdd()",10); // get next Computer record
  854. //-->
  855. </script>
  856. <script FOR="RpmCC_AC" EVENT="ComputerLookupRecord(Cid,Gid,SrvID,Nme,Desc,Pswd,OSVer,Addr,Port)">
  857. <!--
  858. // Save computer name and ID
  859. CArray[ComputerCount++] = Nme;
  860. CArray[ComputerCount++] = Cid;
  861. //-->
  862. </script>
  863. <script FOR="RpmCC_AC" EVENT="ComputerOpComplete()">
  864. <!--
  865. if ( ComputerLookupFlag ) {
  866.     processComputerLookupDone();
  867. }
  868. //-->
  869. </script> 
  870.  
  871. <script FOR="RpmCC_AC" EVENT="ServicesRecord(SRVstrg)">
  872. <!--
  873. processServicesRecord(SRVstrg);
  874. //-->
  875. </script>
  876. <script FOR="RpmCC_AC" EVENT="ServicesOpComplete()">
  877. <!--
  878. // No processing required.  It is handled by the ServicesAddOpComplete
  879. //-->
  880. </script> 
  881. <script FOR="RpmCC_AC" EVENT="ServicesAddOpComplete(sid)">
  882. <!--
  883. ++ServiceCount;
  884. Tid = setTimeout("processServicesRecordAdd()",10); // get next Services record
  885. //-->
  886. </script>
  887. <script FOR="RpmCC_AC" EVENT="AlertServicesOpComplete()">
  888. <!--
  889. if ( AGFinal ) {
  890.     Tid = setTimeout("processAlertGroupFinal()",10); // process next Alert Group
  891. }
  892. //-->
  893. </script> 
  894. <script FOR="RpmCC_AC" EVENT="AlertServicesOpError()">
  895. <!--
  896. if ( AGFinal ) {
  897.     Tid = setTimeout("processAlertGroupFinal()",10); // process next Alert Group
  898. }
  899. //-->
  900. </script> 
  901. <script FOR="RpmCC_AC" EVENT="ServicesOpError()">
  902. <!--
  903. if ( ServiceOp ) {
  904.     updateStatusMessage("-Update Error: '"+ServiceName+"' Service for '"+ComputerName+"'<br>");
  905.     Tid = setTimeout("processServicesRecordAdd()",10); // get next Services record
  906. }
  907. //-->
  908. </script>
  909.  
  910. <script FOR="RpmCC_AC" EVENT="AdminReportsOpComplete()">
  911. <!--
  912. ++ReportCount;
  913. Tid = setTimeout("processReportRecordAdd()",10); // get next Report record
  914. //-->
  915. </script>
  916. <script FOR="RpmCC_AC" EVENT="AdminReportsErrorAddDuplicate()">
  917. <!--
  918. updateStatusMessage("-Duplicate Record: '"+ReportName+"'<br>");
  919. Tid = setTimeout("processReportRecordAdd()",10); // get next Report record
  920. //-->
  921. </script>
  922. <script FOR="RpmCC_AC" EVENT="AdminReportsOpError()">
  923. <!--
  924. updateStatusMessage("-Update Error: '"+ReportName+"'<br>");
  925. Tid = setTimeout("processReportRecordAdd()",10); // get next Report record
  926. //-->
  927. </script> 
  928.  
  929. <script FOR="RpmCC_AC" EVENT="AlertGroupAddOpComplete(NAGID)">
  930. <!--
  931. // Save Alert Group name and ID
  932. AGNArray[WatchCount++] = WatchName;
  933. AGNArray[WatchCount++] = NAGID;
  934. AGNArray[WatchCount++] = CurrentAT;
  935. Tid = setTimeout("processWatchRecordAdd()",10); // get next Watch record
  936. //-->
  937. </script> 
  938. <script FOR="RpmCC_AC" EVENT="AlertGroupOpError()">
  939. <!--
  940. if ( WatchLookup ) {
  941.     updateStatusMessage("-Watch/Alert Lookup Read Error<br>");
  942.    processResetButton();
  943. }
  944. else {
  945.     updateStatusMessage("-Update Error: '"+WatchName+"'<br>");
  946.     Tid = setTimeout("processWatchRecordAdd()",10); // get next Watch record
  947. }
  948. //-->
  949. </script> 
  950. <script FOR="RpmCC_AC" EVENT="AlertGroupOpErrorDuplicate()">
  951. <!--
  952. updateStatusMessage("-Duplicate Record: '"+WatchName+"'<br>");
  953. Tid = setTimeout("processWatchRecordAdd()",10); // get next Watch record
  954. //-->
  955. </script> 
  956. <script FOR="RpmCC_AC" EVENT="AlertGroupErrorAddDuplicate()">
  957. <!--
  958. updateStatusMessage("-Duplicate Record: '"+WatchName+"'<br>");
  959. Tid = setTimeout("processWatchRecordAdd()",10); // get next Watch record
  960. //-->
  961. </script> 
  962. <script FOR="RpmCC_AC"
  963. EVENT="AlertGroupLookupRecordPart1(AlID, AlName, AlDesc, AlThresh, AlOver, AlEveryTime, AlDur, AlSched, AlSDT, AlEDT, AlArrayIDs)">
  964. <!--
  965. // Save Alert Group name and ID
  966. AGNArray[WatchCount++] = AlName;
  967. AGNArray[WatchCount++] = AlID;
  968. AGNArray[WatchCount++] = getCurrentAT(AlSDT);
  969. //-->
  970. </script>
  971. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="AlertGroupOpComplete()">
  972. <!--
  973. if ( WatchLookup ) {
  974.     processAlertGroupLookupDone();
  975. }
  976. //-->
  977. </script> 
  978.  
  979. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="EnumSnmpTrapMonitor(TMstrg)">
  980. <!--
  981. processEnumSnmpTrapMonitor(TMstrg);
  982. //-->
  983. </script> 
  984.  
  985. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="SnmpTrapMonitorAdd(Rstrg)">
  986. <!--
  987. if ( Rstrg == "OK" ) {
  988.     ++SNMPTrapCount;
  989. }
  990. else {
  991.     updateStatusMessage("-Update Error: '"+SNMPTrapName+"' SNMP Trap WATCH for '"+ComputerName+"'<br>");
  992. }
  993. Tid = setTimeout("processSNMPTrapRecordAdd()",10); // get next SNMP Trap record
  994. //-->
  995. </script> 
  996.  
  997. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="OidDefs(Rstrg)">
  998. <!--
  999. var warr = new Array();
  1000. warr = Rstrg.split("~")
  1001. if ( warr[1] == "0" ) { //if successful
  1002.     ++OIDCount
  1003. }
  1004. else {
  1005.     if ( warr[1].indexOf("duplicate") > 0 ) {
  1006.         updateStatusMessage("-Duplicate Record: OID Definition for '"+OIDName+"'<br>");
  1007.     }
  1008.     else {
  1009.         updateStatusMessage("-Update Error: OID Definition for '"+OIDName+"'<br>");
  1010.     }
  1011. }
  1012. Tid = setTimeout("processOIDDefsRecordAdd()",10); // get next OID Def record
  1013. //-->
  1014. </script> 
  1015.  
  1016. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="ELMonitorOpComplete()">
  1017. <!--
  1018. ++ELCount;
  1019. Tid = setTimeout("processELRecordAdd()",10); // get next EL record
  1020. //-->
  1021. </script> 
  1022.  
  1023. <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="ELMonitorOpError()">
  1024. <!--
  1025. updateStatusMessage("-Update Error: '"+ELName+"' EVENT LOG WATCH for '"+ComputerName+"'<br>");
  1026. Tid = setTimeout("processELRecordAdd()",10); // get next EL record
  1027. //-->
  1028. </script> 
  1029.  
  1030. <script FOR="RpmCC_AC" EVENT="OpErrorDup()">
  1031. <!--
  1032. if ( ServiceOp ) {
  1033.     updateStatusMessage("-Duplicate Record: '"+ServiceName+"' for '"+ComputerName+"'<br>");
  1034.     Tid = setTimeout("processServicesRecordAdd()",10); // get next Services record
  1035. }
  1036. else if ( ELOp ) {
  1037.     updateStatusMessage("-Duplicate Record: '"+ELName+"' for '"+ComputerName+"'<br>");
  1038.     Tid = setTimeout("processELRecordAdd()",10); // get next EL record
  1039. }
  1040. //-->
  1041. </script> 
  1042.  
  1043.  
  1044. <script LANGUAGE="JavaScript" src="js/PopUpMenuFunc.js"></script>
  1045.  
  1046. <!-- Invisible Object to Support Simulated Click Event -->
  1047. <button id="FakeBut" style="display:none" onclick="top.banner.savePageCoord(event,document.body,'AdminDataImport')">
  1048. </button>
  1049.  
  1050. <object ID="RpmCC_AC" NAME="RpmCC_AC" WIDTH="14" HEIGHT="1" style="display: none"
  1051. CLASSID="CLSID:D88C2358-FC83-11D1-BF49-00104B2D6F80"
  1052. CODEBASE="controls/RPMComm.cab#version=5,2,0,0">
  1053.   <param name="_Version" value="65536">
  1054.   <param name="_ExtentX" value="2646">
  1055.   <param name="_ExtentY" value="1371">
  1056.   <param name="_StockProps" value="0">
  1057. </object>
  1058.  
  1059. <!--<br>-->
  1060. <div id="TopL" align="center"><center>
  1061.  
  1062. <div><center>
  1063.  
  1064. <table class="fldset" border="2" width="475" cellspacing="2" cellpadding="2" height="150">
  1065.   <tr>
  1066.     <td>
  1067.      <table border="1"  borderColor="menu" align="left">
  1068.         <tr><td borderColorDark="graytext" borderColorLight="white" height="25" style="font-weight:800; font-size:12pt; background-color:threedhighlight; color:windowtext"> <img src="images/DataSave.gif" align="absmiddle" height="17" width="16"> 'Admin' Data Import </td><td width="*"></td>
  1069.         </tr></table>
  1070.     </td>
  1071.   </tr>
  1072.   <tr>
  1073.     <td>
  1074.      <table border="0">
  1075.        <tr><td width="70" align="center" height="300"><img src="images/DataSave.gif" align="absmiddle" height="25" width="24"></td><td><div class="StatMsg" id="StatusMessageDiv"><span id="StatusMessage">Press Start Button to Begin Import of Saved 'Admin' Data<br></span></div><div id="AdminDataStore" style="display:none">
  1076.         <select SIZE="1" NAME="AC_Store" style="display: none"></select>
  1077.         <select SIZE="1" NAME="AC_GrpStore" style="display: none"></select>
  1078.         <select SIZE="1" NAME="AC_SrvStore" style="display: none"></select>
  1079.         <select SIZE="1" NAME="AC_ServicesStore" style="display: none"></select>
  1080.         <select SIZE="1" NAME="AC_UserStore" AutoAgentSetting="1" SecuritySetting="0" style="display: none"></select>
  1081.           <select SIZE="1" NAME="AC_AlertStore" SMTPSetting="" BeeperSetting="" style="display: none"></select>
  1082.         <select SIZE="1" NAME="AR_RptStore" style="display: none"></select>
  1083.         <select SIZE="1" NAME="AC_ELStore" style="display: none"></select>
  1084.         <select SIZE="1" NAME="AC_TrapMonitorStore" OIDDefs="" style="display: none"></select>
  1085.             </div></td>
  1086.           </tr>
  1087.         </table>
  1088.        </td>
  1089.    </tr>
  1090.      <tr>
  1091.     <td align="center" height="30">
  1092.     <button id="CStartButton" title="Start the Process to Save Database 'Admin' Data" onclick="if (this.bdis == '0'){ processStartButton();}" bdis="0" style="width:80px; height:28px" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand"><img src="images/apply.gif" align="absmiddle" height="16" width="16"> Start</button> <button id="StatusPrintButton" title="Print 'Admin' Data Export Status Log" onclick="if (this.bdis == '0') processPrintStatus();" bdis="0" style="width:85px; height:29px" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" DISABLED><img src="images/Printer.gif" align="absmiddle" height="15" width="17"> Print</button></td></tr>
  1093.  
  1094. </table>
  1095.  
  1096. </center></div>
  1097.  
  1098. </center></div>
  1099. </body>
  1100. </html>
  1101.